<template>
  <div class="hamburger-wrap" @click="toggleClick">
    <svg-icon :class="{'is-active':isActive}" class="hamburger" icon-class="hamburger" />
  </div>
</template>

<script>
export default {
  name: 'Hamburger',
  props: {
    isActive: {
      type: Boolean,
      default: false
    }
  },
  methods: {
    toggleClick() {
      this.$emit('toggleClick')
    }
  }
}
</script>

<style scoped lang="scss">
  .hamburger-wrap{
    padding:0 15px 0 0;
    .hamburger {
      display: inline-block;
      vertical-align: middle;
      width: 20px;
      height: 20px;
      color:#fff!important;
      &.is-active {
        transform: rotate(180deg);
      }
    }
  }
</style>
